home *** CD-ROM | disk | FTP | other *** search
- class Summary extends MovieClip
- {
- var bWin;
- var mcAnim;
- var btnSend;
- var btnQuote;
- var mcWinLose;
- var onEnterFrame;
- var outTime = 25;
- function Summary()
- {
- super();
- }
- function init1(Void)
- {
- if(this.bWin)
- {
- this.mcAnim.gotoAndStop(1);
- }
- else
- {
- this.mcAnim.gotoAndStop(Game.getInstance().sEnemy);
- }
- this.btnSend.onRelease = mx.utils.Delegate.create(this,this.onReleaseSend);
- this.btnQuote.onRelease = mx.utils.Delegate.create(this,this.onReleaseQuote);
- }
- function init2(Void)
- {
- §§push(this.stop());
- if(this.bWin)
- {
- this.mcWinLose.gotoAndStop("passed");
- }
- else
- {
- this.mcWinLose.gotoAndStop("failed");
- }
- this.mcWinLose.btnPlayAgain.onRelease = mx.utils.Delegate.create(this,this.onReleasePlay);
- var _loc2_ = Game.getInstance().points;
- var _loc4_ = 5;
- var _loc3_ = _loc2_.toString().length;
- var _loc5_ = "00000";
- this.mcWinLose.points = _loc5_.substr(0,_loc4_ - _loc3_) + _loc2_;
- }
- function onReleaseQuote(Void)
- {
- this.getURL("http://www.easymoneyinsurance.com","_blank");
- }
- function onReleaseSend(Void)
- {
- this.getURL("http://www.easymoney.com/friend","_blank");
- }
- function onReleaseEasy(Void)
- {
- this.getURL("http://www.easymoney.com","_blank");
- }
- function onReleasePlay(Void)
- {
- this.mcWinLose.btnPlayAgain.enabled = false;
- this.onEnterFrame = this.countdown;
- this.mcAnim.mcMovie.gotoAndPlay("OUT");
- }
- function countdown(Void)
- {
- this.outTime = this.outTime - 1;
- if(this.outTime <= 0)
- {
- _root.gotoAndStop("front");
- }
- }
- }
-